package com.jiezuo.flowable.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jiezuo.flowable.mapper.MyMapper;
import com.jiezuo.flowable.service.MyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;

/**
 * @description
 * @author 庞留杰
 * @date 2020/8/24 13:43
 * @version V1.0
 **/
@Service
public class MyServiceImpl extends ServiceImpl<MyMapper, Map<String, Object>> implements MyService {

    @Autowired
    MyMapper myMapper;

    @Override
    public List<Map<String, Object>> findUsersAndButtonIds(String filter) {
        return myMapper.findUsersAndButtonIds(filter);
    }

    @Override
    public List<Map<String, Object>> findButtons(String filter) {
        return myMapper.findButtons(filter);
    }

    @Override
    public List<Map<String, Object>> findAllUsers() {
        return myMapper.findAllUsers();
    }

    @Override
    public List<String> findUserIdsByButtonId(String button_id) {
        return myMapper.findUserIdsByButtonId(button_id);
    }

}
